package com.song.proxy;

public class Dog implements Animals{
    private String name;
    private int sum;

    public Dog() {}

    public Dog(String name, int sum) {
        this.name = name;
        this.sum = sum;
    }

    @Override
    public int printName(String name, int sum) {
        return name.length() + sum;
    }
}
